import request from '@/utils/request'
const api_name = '/manage/teacher/consults'

export function getConsultPageList(page,limit,id,data) {
  return request({
    url: `${api_name}/${page}/${limit}/${id}`,
    method: 'get',
    params: data
  })
}

export function getConsultById(id) {
  return request({
    url: `${api_name}/${id}`,
    method: 'get'
  })
}

export function updateConsultById(data) {
  return request({
    url: `${api_name}`,
    method: 'put',
    data
  })
}
